import TabsView from '@/layouts/tabs/TabsView'
// import BlankView from '@/layouts/BlankView'
// import PageView from '@/layouts/PageView'

// 路由配置
const options = {
  routes: [
    {
      path: '/login',
      name: '登录页',
      component: () => import('@/pages/login')
    },
    {
      path: '*',
      name: '404',
      component: () => import('@/pages/exception/404'),
    },
    {
      path: '/403',
      name: '403',
      component: () => import('@/pages/exception/403'),
    },
    {
      path: '/',
      name: '首页',
      component: TabsView,
      redirect: '/login',
      children: [
        {
          path: 'index',
          name: '店铺分析',
          meta: {
            icon: 'home'
          },
          component: () => import('@/pages/index')
        },
        {
          path: 'userlist',
          name: '用户列表',
          meta: {
            icon: 'user'
          },
          component: () => import('@/pages/userList')
        },
        {
          path: 'orderlist',
          name: '点我加油订单列表',
          meta: {
            icon: 'profile'
          },
          component: () => import('@/pages/orderList')
        },
        {
          path: 'rechargeorderlist',
          name: '油卡充值订单列表',
          meta: {
            icon: 'profile'
          },
          component: () => import('@/pages/rechargeOrderList')
        },
        {
          path: 'paymentlist',
          name: '支付情况',
          meta: {
            icon: 'account-book'
          },
          component: () => import('@/pages/paymentList')
        },
        {
          path: 'stationlist',
          name: '油站列表',
          meta: {
            icon: 'deployment-unit'
          },
          component: () => import('@/pages/stationList')
        },
        {
          path: 'stationlistdetail',
          name: '编辑油站',
          meta: {
            icon: 'deployment-unit',
            invisible: true
          },
          component: () => import('@/pages/stationListDetail')
        },
        {
          path: 'codelist',
          name: '激活码',
          meta: {
            icon: 'gift'
          },
          component: () => import('@/pages/codeList')
        },
        {
          path: 'adminlist',
          name: '管理员列表',
          meta: {
            icon: 'user'
          },
          component: () => import('@/pages/adminList')
        },
        {
          path: 'setting',
          name: '基础设置',
          meta: {
            icon: 'setting'
          },
          component: () => import('@/pages/setting')
        },
        // {
        //   path: 'exception',
        //   name: '异常页',
        //   meta: {
        //     icon: 'warning',
        //   },
        //   component: BlankView,
        //   children: [
        //     {
        //       path: '404',
        //       name: 'Exp404',
        //       component: () => import('@/pages/exception/404')
        //     },
        //     {
        //       path: '403',
        //       name: 'Exp403',
        //       component: () => import('@/pages/exception/403')
        //     },
        //     {
        //       path: '500',
        //       name: 'Exp500',
        //       component: () => import('@/pages/exception/500')
        //     }
        //   ]
        // },
        {
          name: '验权页面',
          path: 'auth/demo',
          meta: {
            icon: 'file-ppt',
            authority: {
              permission: 'form',
              role: 'manager'
            },
            component: () => import('@/pages/userList')
          }
        }
      ]
    }
  ]
}

export default options
